//
//  MCAfterSaleDetailFooter_itemView.swift
//  StoreManage
//
//  Created by MC on 2018/2/2.
//  Copyright © 2018年 MC. All rights reserved.
//

import UIKit

class MCAfterSaleDetailFooter_itemView: UIView {
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.backgroundColor = UIColor.white

        
        self.addSubview(lineView)
        lineView.snp.remakeConstraints { (make) ->Void in
            make.left.right.bottom.equalTo(0)
            make.height.equalTo(1)
        }
        
        self.addSubview(nameLabel)
        nameLabel.snp.remakeConstraints { (make) ->Void in
            make.left.equalTo(0)
            make.top.equalTo(12)
            make.height.equalTo(20)
            make.width.equalTo(80)
        }
        
        self.addSubview(detailLabel)
        detailLabel.snp.remakeConstraints { (make) ->Void in
            make.top.equalTo(12)
            make.right.equalTo(-10)
            make.left.equalTo(nameLabel.snp.right).offset(5)
            make.bottom.lessThanOrEqualTo(self.snp.bottom).offset(-12)
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    lazy var lineView: UIView = {
        let view = UIView()
        view.backgroundColor = UIColor.MCGray_light
        return view
    }()
    
    
    public lazy var nameLabel: UILabel = {
        let label = UILabel.init()
        label.font = MCFont(15)
        label.textColor = UIColor.black
        return label
    }()
    
    
    public lazy var detailLabel: UILabel = {
        let label = UILabel.init()
        label.font = MCFont(13)
        label.textColor = UIColor.black
        label.textAlignment = NSTextAlignment.right
        label.numberOfLines = 0
        return label
    }()
}
